﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class='loginbutton'>
    <%
        if (Request.IsAuthenticated)
        {
    %>
    Welcome <b>
        <%= Html.Encode(Page.User.Identity.Name) %></b>! [
    <%= Html.ActionLink("Sign Out", "SignOut", "Account") %>
    ]
    <%
        }
    else
    {
    %>
    <%
        if (!Request.IsAuthenticated)
        {
    %>
    <a href='/account/signin'>
        <img src='/Content/images/authenticate.png' /></a>
    <%} %>
    <%
        }
    %>
</div>
